import request from '@/utils/request'

// 查询项目跟踪列表
export function listDealTrack(query) {
  return request({
    url: '/track/dealTrack/list',
    method: 'post',
    data: query
  })
}

// 查询项目跟踪详细
export function getDealTrack(id) {
  return request({
    url: '/track/dealTrack/' + id,
    method: 'get'
  })
}

// 保存项目跟踪
export function saveDealTrack(data) {
  return request({
    url: '/track/dealTrack/save',
    method: 'post',
    data: data
  })
}

// 删除项目跟踪
export function delDealTrack(id) {
  return request({
    url: '/track/dealTrack/' + id,
    method: 'delete'
  })
}

// 导出项目跟踪
export function exportDealTrack(query) {
  return request({
    url: '/track/dealTrack/export',
    method: 'get',
    params: query
  })
}

export function trackInfo(query) {
  return request({
    url: '/track/dealTrack/trackInfo',
    method: 'get',
    params: query
  })
}

export function estateTrackInfo(query) {
  return request({
    url: '/track/dealTrack/estateTrackInfo',
    method: 'get',
    params: query
  })
}

// 查询是否有周会子应用
export function hasWeeklyApp() {
  return request({
    url: '/track/dealTrack/hasWeeklyApp',
    method: 'get'
  })
}
